package com.talent.service.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * @ClassName：AuthAplication
 * @Author: hszhou
 * @Date: 2024/12/5 10:35
 * @Description: 认证服务器
 */
@SpringBootApplication
@EnableDiscoveryClient
//是认证服务器
@EnableAuthorizationServer
//是资源服务器 有接口
@EnableResourceServer
public class AuthorizationApplication {
    public static void main(String[] args) {

        SpringApplication.run(AuthorizationApplication.class);
    }
}
